package cn.wangxl.group.rpc.server;

import cn.wangxl.group.rpc.protocol.Protocol;

/**
 * @Deacription RpcServer
 * @Author 20112128
 * @Date 2020/9/22 18:07
 **/
public abstract class RpcServer {
    private int port;

    private Protocol protocol;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public Protocol getProtocol() {
        return protocol;
    }

    public void setProtocol(Protocol protocol) {
        this.protocol = protocol;
    }

    /**
     * 启动服务
     */
    public abstract void start();

    /**
     * 暂停服务
     */
    public abstract  void stop();
}
